package edu.gdkm.demo12;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        StudentManager studentManager=new StudentManager();
        studentManager.init();
//        studentManager.listAll();
//        System.out.println(studentManager.getByIndex(5));
//        Student student=new Student();
//        student.setStudentNumber("2206020153");
//        student.setStudentName("张三");
//        studentManager.addStudent(student);
//        studentManager.outputTxt();
//        Student student2=new Student();
//        student2.setStudentNumber("2206020104");
//        student2.setStudentName("黄泓智");
//        System.out.println(studentManager.getStudentIndex(student2));
//        Student student=new Student();
//        student.setStudentNumber("2206020153");
//        student.setStudentName("张三");
//        studentManager.delStudent(student);
//        studentManager.outputTxt();
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入查询的学号：");
        System.out.println(studentManager.findByStudentNumber(sc.next()));
    }
}
